<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>循环遍历ListDemo</title>
</head>
<body>
	<h1>演示的是 jstl中list嵌套map, 取值</h1>
	<p>这里的var是表示每次迭代中的元素, items 要进行迭代的集合</p>
	<table width="400" height="200" align="center" border="1px">
		<tr>
			<td>Code</td>
			<td>Name</td>
		</tr>
		<c:forEach items="${userList}" var="user" varStatus="status">
			<tr>
				<c:forEach var="mapItem" items="${user}">
					<c:if test="${mapItem.key =='code'}">
						<td><c:out value="${mapItem.value}" /></td>
					</c:if>
					<c:if test="${mapItem.key =='name'}">
						<td><c:out value="${mapItem.value}" /></td>
					</c:if>
				</c:forEach>
				<%-- <td align="right">
					<c:out value="${liuTest}" />
				</td> --%>
			</tr>
		</c:forEach>

	</table>
</body>
</html>